package com.wzx.user.constants;

import com.wzx.common.exception.NeedCodeException;
import com.wzx.common.util.token.AppJwtUtil;

/**
 * @author wzx
 * @version 1.0
 * @date 2022/7/22 - 16:42
 * @description 标题
 */
public interface BusinessCon {

    class User {
        public static final String REQ_NUMBER = "REQ_NUMBER";
        public static final String CODE_HEAD = "CODE_";
        public static final Integer OVERDUE_Time = 300;

        public static final String IMG_CODE_HEAD = "IMG_CODE_";
    }

    class Login {
        public static final String LOGIN_OK = "登录成功！";
        public static final String NOT_FIND_USER = "用户不存在！";
        /**
         * 密码登录，redis前缀
         */
        public static final String LOGIN_PWD_PREFIX = "LOGIN_PWD_PREFIX:";

        /**
         * 验证码登录，redis前缀
         */
        public static final String LOGIN_CODE_PREFIX = "LOGIN_CODE_PREFIX:";

        public static final Integer LOGIN_PWD_TIME_LIMIT = 60 * 60 * 12;


        public static final String NEED_CODE_EXCEPTION = "NeedCodeException";
        public static final String LEAD_NEWS_EXCEPTION = "LeadNewsException";
    }


}
